package com.ruoyi.miniapp.api.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户登录对象 t_login
 *
 * @author ruoyi
 * @date 2022-10-26
 */
public class AppUser {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long loginId;

    /**
     * $column.columnComment
     */
    @Excel(name = "电话", readConverterExp = "$column.readConverterExp()")
    private String tel;

    /**
     * 用户名
     */
    @Excel(name = "用户名")
    private String nickname;

    /**
     * 最后登陆时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登陆时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginTime;

    /**
     * 登陆次数
     */
    @Excel(name = "登陆次数")
    private Long loginCount;

    /**
     * 最后活跃时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后活跃时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date activeTime;

    public void setLoginId(Long loginId) {
        this.loginId = loginId;
    }

    public Long getLoginId() {
        return loginId;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getTel() {
        return tel;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getNickname() {
        return nickname;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginCount(Long loginCount) {
        this.loginCount = loginCount;
    }

    public Long getLoginCount() {
        return loginCount;
    }

    public void setActiveTime(Date activeTime) {
        this.activeTime = activeTime;
    }

    public Date getActiveTime() {
        return activeTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("loginId", getLoginId())
                .append("tel", getTel())
                .append("nickname", getNickname())
                .append("loginTime", getLoginTime())
                .append("loginCount", getLoginCount())
                .append("activeTime", getActiveTime())
                .toString();
    }
}
